import {request, config} from 'utils'

const {api} = config
const {cancelledOrder,personalChatRecords} = api

export function query (params) {
  return request({
    url: personalChatRecords,
    method: 'get',
    data: params,
  })
}

export function findCustomerChatRecords (params) {
  return request({
    url: personalChatRecords + '/findOfCustomer',
    method: 'get',
    data: params,
  })
}

export function batchDelete (params) {
  return request({
    url: personalChatRecords+ '/delete',
    method: 'post',
    data: params,
  })
}

export function create (params) {
  return request({
    url: cancelledOrder,
    method: 'post',
    data: params,
  })
}

export function remove (params) {
  return request({
    url: cancelledOrder,
    method: 'delete',
    data: params,
  })
}

export function update (params) {
  return request({
    url: cancelledOrder,
    method: 'put',
    data: params,
  })
}
